<!DOCTYPE HTML>


<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="Cache-Control" CONTENT="no-cache">
    <meta http-equiv="Pragma" CONTENT="no-cache">
    <title>你有一条关于iPhone？的短信，请查收！</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <style>
        #mySwiper{
            width: 100%;
            height: 100%;
            position: absolute;
            background-size: 100% 100%;
        }
        #submit{
            position: relative;
            left:34%;
            width: 32%;
            top: 85%;
            height:10%;
            background: url(resource/image/submit.png) no-repeat;
            background-size: 100% 100%;
        }
    </style>
    <link type="text/css" href="./public/css/main.css?v=1.0" rel="stylesheet" />
    <style>
        html,body{height: 100%;}
        .wrapper{height:100%;}
    </style>
    <script src="./public/js/jquery-1.11.2.min.js"></script>
    <script src="./public/js/fh_ajax.js"></script>
    <script>

        var URL_BASE = "http://weixin.juzili.net/PhoneYuyue/";
        var lineLink = URL_BASE +"index.html";
        var imgUrl = URL_BASE + "resource/image/sharelogo.jpg";
        var shareTitle = "你有一条关于iPhone？的短信，请查收！";
        var descContent = "恭喜你！获得……";
        $.get("http://weixin.juzili.net/xijinping/wecallback.php",{url:encodeURIComponent(location.href.split('#')[0])},function(data){
            bindWx(data.data);
        },'json');
        function bindWx(data){
            wx.config({
                debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
                appId: data.appid, // 必填，公众号的唯一标识
                timestamp: data.timestamp, // 必填，生成签名的时间戳
                nonceStr: data.nonceStr, // 必填，生成签名的随机串
                signature: data.signature,// 必填，签名，见附录1
                jsApiList: [
                    'checkJsApi',
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'onMenuShareQQ',
                    'onMenuShareWeibo',
                    'startRecord',
                    'uploadVoice',
                    'stopRecord',
                    'playVoice',
                    'downloadVoice',
                    'stopVoice'
                ] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
            });
            wx.ready(function() {
                wx.onMenuShareAppMessage({
                    title: shareTitle,
                    desc: descContent,
                    link: lineLink,
                    imgUrl: imgUrl,
                    trigger: function (res) {

                    },
                    success: function (res) {
                        $.post("getPV.php", {share: "TRUE"}, function (e) {
                        }, 'json');
                    },
                    cancel: function (res) {
                    },
                    fail: function (res) {
                        alert(JSON.stringify(res));
                    }
                });

                // 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
                wx.onMenuShareTimeline({
                    title: shareTitle,
                    link: lineLink,
                    imgUrl: imgUrl,
                    trigger: function (res) {
                    },
                    success: function (res) {
                        $.post("getPV.php", {share: "TRUE"}, function (e) {
                        }, 'json');
                    },
                    cancel: function (res) {
                    },
                    fail: function (res) {
                        alert(JSON.stringify(res));
                    }
                });
            });
        }
        $.get("pvtongji.php",function(e){},"json");
    </script>
</head>
<body>
<!--<audio src="http://7xj6oq.com2.z0.glb.qiniucdn.com/11.mp3" id="mp3" loop="loop" autoplay="autoplay"></audio>-->
<div class="wrapper">
    <div class="loading" style="height: 100%;display: -webkit-box; text-align: center;-webkit-box-orient: horizontal;-webkit-box-pack: center;-webkit-box-align: center;">
        <img src="./public/images/apple_logo.png" width="60" style="margin-bottom:106px;" /><br/>
        <img src="./public/images/loading.gif" />
    </div>
</div>
<div style="position:relative;margin:0 auto;dispaly:none;" id="gameDiv"></div>
<div class="swiper-container" id="mySwiper" style="display: none;">
    <div class="swiper-wrapper">
        <div class="swiper-slide swiper-no-prev" style="background:url(resource/image/1.png) no-repeat; background-size: 100% 100%;"></div>
        <div class="swiper-slide" style="background:url(resource/image/2.png) no-repeat; background-size: 100% 100%;"></div>
        <div class="swiper-slide" style="background:url(resource/image/4.png) no-repeat; background-size: 100% 100%;"></div>
        <div class="swiper-slide" style="background:url(resource/image/618.jpg) no-repeat; background-size: 100% 100%;">
            <div id="submit"></div>
        </div>
    </div>
</div>
<script src="public/js/swiper3.07.min.js"></script>
<script>var document_class = "Main";</script><!--这部分内容在编译时会被替换，要修改文档类，请到工程目录下的egretProperties.json内编辑。-->
<!--This part will be replaced during compiling, and to modify the document class, please go to the project directory and edit in the file of egretProperties. Jsonr-->
<script src="launcher/egret_require.js"></script>
<script src="launcher/egret_loader.js"></script>

<script src="launcher/game-min.js"></script>

<script>
    var support = [].map && document.createElement("canvas").getContext;
    if (support) {
        egret_h5.startGame();
    }
    else {
        alert("Egret 不支持您当前的浏览器")
    }
    addBrowsePage("index");//添加用户的浏览总数   
    //showWeiXinShare('');
</script>

</body>
</html>
